package com.xpc.mapper;

import com.xpc.pojo.qin.NormalLogin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author Qinkuer
 * @version 1.0.0
 * @ProjectName UniversityGradeAdministrationSystem
 * @ClassName NormalLoginMapper.java
 * @Description TODO 普通用户登录NormalLogin的Mapper类
 * @createTime 2022年05月21日 18:52:00
 */
@Mapper
public interface NormalLoginMapper {


    @Select("select a.account_id,a.user_id,u.password,u.salt " +
            "from account as a left join user as u on a.user_id = u.user_id " +
            "where a.account_id=#{accountId} ")
    NormalLogin getUser(@Param("accountId")String accountId);



    NormalLogin getAdmin(@Param("accountId")String accountId);
}


